﻿using DAL;
using Model;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class informBLL
    {
        public DataTable FY(string tableName, int pageIndex)
        {
            return new informDAL().FY(tableName, pageIndex);
        }

        public DataTable Select(string v)
        {

            return new informDAL().Select(v);
        }

        public bool Del(string tableName, int id)
        {
            return new informDAL().Del(tableName, id);
        }

        public bool Gai(EmployeeModel model, int pid)
        {
            return new informDAL().Gai(model, pid); 
        }
        public bool Add(EmployeeModel model)
        {
            return new informDAL().Add(model);
        }

        public EmployeeModel GetModelByID(string tableName, int pid)
        {
            return new informDAL().GetModelByID(tableName, pid);
        }

        public object SelectNo(string tableName, string mz)
        {
            return new informDAL().SelectNo(tableName, mz);
        }

        public DataTable LJ(string v1, string v2)
        {
            return new informDAL().LJ(v1, v2);
        }

        public DataTable Xs(string tableName, int id)
        {
            return new informDAL().Xs(tableName, id);
        }

        public DataTable SelectName(string tableName, string mz,int id)
        {
            return new informDAL().SelectName(tableName, mz,id);
        }
        public DataTable  SelectLJ(string tableOne, string tableTwo, string mz)
        {
            return new informDAL().SelectLJ(tableOne, tableTwo, mz);
        }

        public DataTable S(string tableOne, string tableTow, int pageIndex)
        {
            return new informDAL().S(tableOne, tableTow, pageIndex);
        }
    }
}
